package com.yuqiangz.boot05web01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author 赵雨强
 * @create 2021/7/25 19:10
 * @description 测试thymeleaf模板引擎
 */
@Controller
public class ViewTestController {

    @GetMapping("/thymeleaf01")
    public String atguigu(Model model){
        model.addAttribute("msg", "大主宰");
        model.addAttribute("link", "http://www.baidu.com");
        return "success";
    }

}
